package com.money.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.domain.po.UserMoney;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author 路亚
 * @version 0.1
 * @className UserMoneyMapper
 * @description
 * @date 2024/12/27 16:29
 * @since jdk11
 */
@Mapper
public interface UserMoneyMapper extends BaseMapper<UserMoney> {

    @Update("update user_money set real_money = #{realMoney}, gold_num = #{goldNum} where id = #{id}")
    void goldToMoney(UserMoney userMoney);
}
